<?php $this->_extends('_layouts/manager_layout'); ?>

<?php $this->_block('title'); ?> - welcome <?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
<h2>修改 密码</h2>
<?php if(isset($error)):?>
<div class="notice">
	<?php foreach($error as $en=>$v){
			switch($en){
				case 'newpassword2': echo ' 两次新密码不一致 '; break;
				case 'newpassword': echo ' 新密码不能少于5位 '; break;
				case 'oldpassword': echo ' 旧密码不正确 '; break;
				case 'success': echo ' 成功 '; break;
			}
		  }
	?>
</div>
<?php endif;?>
<form action="" method="post">
<table>
	<tr><th>You Name :</th><td><?=$sellerUser['seller_name']?></td></tr>
	<tr><th>old password:</th><td><input type="text" name="oldpassword" value=""  size="30"/></td></tr>
	<tr><th>new password:</th><td><input type="password" name="newpassword" value=""  size="30"/></td></tr>
	<tr><th>new password again:</th><td><input type="password" name="newpassword2" value="" size="30" /></td></tr>
	<tr> <td></td> <td><input type="submit" value="确定修改"  />  &nbsp;&nbsp;&nbsp;&nbsp; 
	<input type="reset" value="清空"  />
	</td> </td> </tr>
</table>
 </form>

<?php $this->_endblock('contents'); ?>
